//
//  TWCacheHelper.h
//  TWHomework-WeChat
//
//  Created by wzb on 2019/11/13.
//  Copyright © 2019 WZB. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface TWCacheHelper : NSObject

/**
 *  加入缓存 value/key
 */
+ (void)cacheKeyValues:(NSDictionary *)value forKey:(NSString *)key;

/**
 *  取出key对应的缓存
 */
+ (NSDictionary *)getValuesForKey:(NSString *)key;

/**
 *  加入缓存 arr
 */
+ (void)cacheArray:(NSArray *)array forKey:(NSString *)key;

/**
 *  取出key对应的缓存
 */
+ (NSArray *)getArray:(NSString *)key;

/**
 *  字符串缓存
 */
+ (void)cacheString:(NSString *)value forKey:(NSString *)key;

/**
 *  获取缓存中的字符串
 */
+ (NSString *)getStringForKey:(NSString *)key;

/**
 *  清空key对应的缓存
 */
+ (void)removeCacheForKey:(NSString *)key;

+ (NSDictionary *)getCacheDictionaryForKey:(NSString *)key;


@end

NS_ASSUME_NONNULL_END
